| Run file for StrongHelp
|  StrongHelp Developers

| Set up directory path and load sprites
Set StrongHelp$Dir <Obey$Dir>
IconSprites <StrongHelp$Dir>.!Sprites

| Claim our filetype and URI
Set File$Type_3d6 StrHelp
Set Alias$@RunType_3d6 Run <StrongHelp$Dir>.!Run %%*0
Set Alias$Open_URI_x-stronghelp Run <StrongHelp$Dir>.!Run

| Check if we're already running
Set tmp$running true
RMEnsure StrongHelp 0 Set tmp$running false
If "<tmp$running>" = "true" Then StrongHelp_ping
If "<tmp$running>" = "true" Then Error StrongHelp is already running.
Unset tmp$running

| Set up application info
Set StrongHelp$Description "Hypertext program for on-screen manuals"
Set StrongHelp$Publisher "StrongHelp Developers"
Set StrongHelp$Version "2.87"
Set StrongHelp$Title "StrongHelp"
Set StrongHelp$Help "<StrongHelp$Dir>.!Help"
Set StrongHelp$Web "http://www.stronged.iconbar.com/fjg"

| StrongHelp uses DrawFile so make sure it's available
RMEnsure DrawFile 1.30 RMLoad System:Modules.DrawFile
RMEnsure DrawFile 1.30 Error StrongHelp needs DrawFile 1.30 or later.

| StrongHelp uses CallASWI so make sure it's available
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.02 RMLoad System:Modules.CallASWI
RMEnsure UtilityModule 3.70 RMEnsure CallASWI 0.02 Error StrongHelp requires CallASWI 0.02 or later

| Run ResFind to figure out which set of resources to use
Run <StrongHelp$Dir>.Resources.ResFind StrongHelp

| Path for configuration files
Set StrongHelp$Path Choices:StrongHelp.,<StrongHelp$Dir>.

| Add ptr_link iff not already defined
Run <StrongHelp$Dir>.AddPtr

| Finally set wimpslot and run StrongHelp
WimpSlot -min 64K -max 64K
Run <StrongHelp$Dir>.!RunImage %*0